package com.topvision.domain;

import com.topvision.common.model.DataEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * 系统订单实体类
 *
 */
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class SysOrder extends DataEntity implements Serializable {

    /**
     * 购买用户ID
     */
    private Long userId;

    /**
     * 订单创建时间
     */
    private ZonedDateTime orderDate;

    /**
     * 0 待审核  1 已审核  2 取消
     *
     */
    private Integer orderStatus;

    /**
     * 购买用户名
     */
    private String userName;

    /**
     * 用户手机
     */
    private String mobile;

    /**
     * 用户邮箱
     */
    private String email;


    private String imgUrl;

}
